#ifndef WORKER_H
#define WORKER_H

#include <QObject>

class Worker : public QObject
{
    Q_OBJECT
public:
    explicit Worker(int index ,QObject *parent = nullptr);
    virtual ~Worker();
    void setIndex(int i ){index = i;}

public Q_SLOTS:
    void dowork();
private:
    int index = 0;

};

#endif // WORKER_H
